﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hinh
{
    class HinhVuong : Hinh
    {
        int a;
        float dt,cv;
        public HinhVuong()
        {
            a = 5;
        }
        public HinhVuong(int b)
        {
            a = b;    
        }
        public override void VeHinh()
        {
            base.VeHinh();
        }
        public override void TinhDienTich()
        {
            dt = a * a;
            Console.WriteLine("Dien Tich HV: " + dt);
        }
        public override void TinhChuVi()
        {
            cv = a*4;
            Console.WriteLine("Chu vi HV: " + cv);
        }
    }
}
